#ifndef _PUBLIC_H_
#define _PUBLIC_H_

#include<stdio.h>
#include<glib-2.0/glib.h>
#include<stdarg.h>
#include<stdlib.h>
#include<string.h>
#include<locale.h>
#include<glib-2.0/glib/gprintf.h>
#include<pthread.h>
#include <glib-object.h>
#include <json-glib/json-glib.h>

typedef struct string {
    char *ptr;
    size_t len;
} String;

extern gchar *APPLICATION_JSON;
extern gchar *FORM_POST;
gchar *Error(gchar *error_msg);
void init_string(struct string *s);
size_t writefunc(void *ptr, size_t size, size_t nmemb, struct string *s);
size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream);

#endif
